package birdsong.server;


import birdsong.comm.BirdSongServerComm;
import birdsong.comm.MessageFilter;
import birdsong.comm.ServerComm;
import birdsong.dummy.BirdsongServerDummy;
import birdsong.dummy.ServerCommDummy;


/**
 * Server tester. It starts the server and the serverTester
 * @author Pedro
 *
 */

public class ServerMain {	
	public static void main(String[] args) {
		BirdSongServerComm serverCom = new BirdSongServerComm();
		
		String [] censura={"twitter", "lol", "xD", "sexo", "download", "publicidade"};

		MessageFilter m = new MessageFilter(serverCom , censura);
		Server  server     = new Server();
		server.start(m);
		while(true){
			
			m.getNextMessage();	
		}
		
	}
}
